ag_rast <- rast(ag_data)
crs(x = ag_rast, warn= FALSE) <- "epsg:26914"
coords <- read_csv(here::here("./notebooks/coords.csv" ), show_col_types = FALSE) %>%
st_as_sf(coords = c("long" , "lat" ), crs = 4326 ) %>%
st_transform(crs = 26914 )
a_col <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = a_c)) +
scale_fill_viridis_c(name = bquote(italic("a*" )), breaks = seq(2.5 , 4 , 0.5 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
b_col <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = b_c)) +
scale_fill_viridis_c(name = bquote(italic("b*" )), breaks = seq(7 , 10 , 1 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
c_col <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = c_c)) +
scale_fill_viridis_c(name = bquote(italic("c*" )), breaks = seq(7 , 11 , 1 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
h_col <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = h_c)) +
scale_fill_viridis_c(name = bquote(italic("h*" )), breaks = seq(1.15 , 1.25 , 0.02 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
x_col <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = x_c)) +
scale_fill_viridis_c(name = bquote(italic("x" )), breaks = seq(0.470 , 0.476 , 0.003 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
ca <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = ca)) +
scale_fill_viridis_c(name = "Ca" ) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
co <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = co)) +
scale_fill_viridis_c(name = "Co" , breaks = seq(8 , 11 , 1 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
cs <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = cs)) +
scale_fill_viridis_c(name = "Cs" , breaks = seq(0.5 , 1.1 , 0.2 ), limits = c(0.4 , 1.1 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
fe <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = fe)) +
scale_fill_viridis_c(name = "Cs" ) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
li <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = li)) +
scale_fill_viridis_c(name = "Li" , breaks = seq(14 , 20 , 2 ), limits = c(13 , 20 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
la <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = la)) +
scale_fill_viridis_c(name = "La" , breaks = seq(16 , 20 , 1 ), limits = c(16 , 20 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
nb <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = nb)) +
scale_fill_viridis_c(name = "Nb" , breaks = seq(0.5 , 0.7 , 0.1 )) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
ni <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = ni)) +
scale_fill_viridis_c(name = "Ni" ) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
rb <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = rb)) +
scale_fill_viridis_c(name = "Rb" ) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))
sr <- ggplot() +
tidyterra::geom_spatraster(data = ag_rast, aes(fill = sr)) +
scale_fill_viridis_c(name = "Sr" ) +
#geom_sf(data = filter(coords, site == "Agriculture")) +
theme_minimal(base_size = 12 ) +
theme_bottom +
scale_y_continuous(expand = c(0 ,0 )) +
scale_x_continuous(expand = c(0 ,0 ))